﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace StockTrader.DAL.HastcAdapter.FileViewer
{
    public partial class Form1 : Form
    {
        private void LoadCombo()
        {
            string strXML = AppDomain.CurrentDomain.BaseDirectory.Replace("bin\\Debug\\", "") + "Config\\FileDir.xml";
            DataSet ds = new DataSet();
            ds.ReadXml(strXML);
            if (ds.Tables.Count > 0)
            {
                cboFileList.Items.Clear();
                cboFileList.DisplayMember = "KeyName";
                cboFileList.ValueMember = "KeyCode";
                cboFileList.DataSource = ds.Tables["FileConfig"];
                cboFileList.SelectedIndex = 0;
            }
        }
        private void LoadGrid()
        {
        }

        public Form1()
        {
            InitializeComponent();
        }

    }
}
